package edu.lingnan.blog.search;

import edu.lingnan.blog.search.config.RibbonConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author cql
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(basePackages = "edu.lingnan.blog.api")
//Ribbon负载均衡的全局配置
@RibbonClients(defaultConfiguration = RibbonConfiguration.class)
public class BlogSearchApplication {

    public static void main(String[] args) {
        SpringApplication.run(BlogSearchApplication.class, args);
    }


}
